package cn.kgc.controller;

import cn.kgc.entity.Classes;
import cn.kgc.service.ClassesService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ClassesController {
    @Reference
    private ClassesService classesService;

    @RequestMapping("/getClasses")
    public List<Classes> getAll(){return classesService.getClasses();}
}
